<?php

namespace common\models\ar;

use Yii;

/**
 * This is the model class for table "user_info_detail".
 *
 * @property int $id
 * @property int $uid 交易用户ID
 * @property int $field_id 字段ID
 * @property string $field_value 字段值
 */
class UserInfoDetail extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_info_detail';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userID', 'field_id'], 'required'],
            [['userID', 'field_id'], 'integer'],
            [['field_value'], 'string'],
            [['userID', 'field_id'], 'unique', 'targetAttribute' => ['userID', 'field_id']],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'userID' => '交易用户ID',
            'field_id' => '字段ID',
            'field_value' => '字段值',
        ];
    }
}
